package com.htudata.trigger.dao;

import com.alibaba.fastjson.JSONArray;
import com.htudata.trigger.mapper.TriggerMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

@Repository
public class TriggerDao {

  @Autowired
  private TriggerMapper triggerMapper;
  
  public JSONArray selectAllLocalTriggers(String triggerName) {
    return this.triggerMapper.selectAllLocalTriggers(triggerName);
  }
  
  public JSONArray selectLocalTriggersByNodeIdOrFlowId(String flowId, String nodeId) {
    return this.triggerMapper.selectLocalTriggersByNodeIdOrFlowId(flowId, nodeId);
  }
}
